package tgc.edu.tms.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import com.fasterxml.jackson.annotation.JsonIgnore;

import tgc.edu.tms.custom.BaseEntity;

@Entity
public class Jcb extends BaseEntity<Integer> {

	private String jcsj;//上课节次
	private String xq;//星期时间
	@JsonIgnore
	private List<ClassSchedule> schedule=new ArrayList<>();
	public String getJcsj() {
		return jcsj;
	}
	public void setJcsj(String jcsj) {
		this.jcsj = jcsj;
	}
	public String getXq() {
		return xq;
	}
	public void setXq(String xq) {
		this.xq = xq;
	}
	@OneToMany(cascade=CascadeType.ALL,mappedBy="jcb")
	public List<ClassSchedule> getSchedule() {
		return schedule;
	}
	public void setSchedule(List<ClassSchedule> schedule) {
		this.schedule = schedule;
	}
	
	
}
